package org.zxp.thread.threadlocal.normal;

import java.util.HashMap;

/**
 * @program: zxp-thread-test
 * @description:
 * @author: X-Pacific zhang
 * @create: 2020-08-25 17:10
 **/
public class NormalTest {
    public static void main(String[] args) throws InterruptedException {
        new Thread(()->{
            HashMap map = new HashMap();
            map.put("fundId", "1001");
            map.put("productId", "1");
            map.put("productName", "好销贷");
            ProductMsgContext.set(map);
            new NormalTest2().get();
        },"thread1").start();


        new Thread(()->{
            HashMap map = new HashMap();
            map.put("fundId", "1002");
            map.put("productId", "2");
            map.put("productName", "押金贷");
            ProductMsgContext.set(map);
            new NormalTest2().get();
        },"thread2").start();
        Thread.sleep(100000);
    }
}
